package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：徐志荣
 * @Date：2023/7/23 下午 4:11
 */

@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/hi")
    public String sayHi(String name){
        System.out.println("执行了 say Hi 方法");
        return "Hi , "+name;
    }

    @RequestMapping("/hello")
    public String sayHello(){
        System.out.println("执行了 say hello 方法");

        return "Hi , gggg";
    }

}
